<script type="text/javascript" src="jquery/jquery-latest.js"></script>

        <style type="text/css">
        	#lightbox{
				display:none;
        		background:#000000;
				opacity:0.9;
				filter:alpha(opacity=90);
        		position:absolute;
				top:0px;
				left:0px;
				min-width:100%;
				min-height:100%;
				z-index:1000;
        	}
			#lightbox-panel{
				display:none;
				position:fixed;
				top:20px;
				left:30%;
				margin-left:-30px;
				width:40%;
				background:#FFFFFF;
				padding:20px 15px 10px 15px;
				border:2px solid #CCCCCC;
				z-index:1001;
				height: 50%;
				margin-top:80px;
			}
			p{
			text-align:right;
			}
		</style>

		<script type="text/javascript">
			$(document).ready(function(){
				$("ask#close-panel").click(function(){
					$("#lightbox, #lightbox-panel").fadeOut(300);
				})
			})
		</script>
<script type="text/javascript">
/*$(document).ready(function()
{
				
$("a#show-panel").click(function()
{	
	
	
var test=$("#ask").val();
var upload_query=$("#upload_query").val();
var dataString = 'test='+ test+'&upload_query=' + upload_query;
//alert(upload_query);
//alert(test);
				
$("a#show-panel").click(function()
{	
	
	
var test=$("#ask").val();
var dataString = 'test='+ test;

//alert(test);

$.ajax
({
type: "POST",
url: "ajax_question_asked.php",
data: dataString,
cache: false,
success: function(html)
{
	$("#lightbox, #lightbox-panel").fadeIn(300);
	$("#lightbox-panel").html(html);
	$('#lightbox-panel').append('<p><a href="">Close</a></p>');
} 
});
});

$("#lightbox").click(function()
{
	$("#lightbox, #lightbox-panel").hide();
});
<<<<<<< .mine
								  
});*/
								  
});
</script>
<form name="search_question1_process" id="search_question1_process" enctype="multipart/form-data" method="post" action="search_question1_process.php">
<form name="search_quastion" id="search_quastion" enctype="multipart/form-data" method="post" action="">
                           <div id="ques">
                            <div class="quesleft">
								<center>
									<table border="0" width="100%" cellspacing="0" cellpadding="2">				                               
<!-- 										<tr><td colspan="4" style="height:15px;"></td></tr>
 -->									<tr align="left">
											<td valign="top"><strong>Ask a question :</strong></td>									
											<td><textarea id="quest" name="quest" rows="3" cols="40" class=" validate[required,length[0,50]] text-input"></textarea></td>
										</tr>
											
										<tr align="left">
											<td><strong>Upload File :</strong></td>
											<td><input type="file" name="upload_query" id="upload_query"></td>
										</tr>

										<tr align="left">
											<td>Your Name :</td>

											<td class="login-textbox-bg"><input id="fname" type="text" class="login-textbox" onkeypress="return disableEnterKey(event)" onblur="if(this.value =='')(this.value = 'First Name')" onclick="if(this.value =='First Name')(this.value = '')" value="First Name" name="fname">&nbsp;<input id="lname" type="text" class="login-textbox" onkeypress="return disableEnterKey(event)" onblur="if(this.value =='')(this.value = 'Last Name')" onclick="if(this.value =='Last Name')(this.value = '')" value="Last Name" name="lname"></td>
<!-- 										<td><input type="text" name="fname" value="FIRST NAME"> &nbsp;<input type="text" name="lname" value="LAST NAME"></td>-->
										</tr>

										<tr align="left">
											<td>Your E-Mail :</td>
											<td><input type="text" name="email" value=""></td>
										</tr>

										<tr align="left">
											<td>Company Name :</td>
											<td><input type="text" name="company_name" value=""></td>
										</tr>

										<tr align="left">
											<td>Telephone :</td>
											<td class="login-textbox-bg"><input id="tel_code" width="20" size="10" type="text" class="login-textbox" onkeypress="return disableEnterKey(event)" onblur="if(this.value =='')(this.value = 'Std Code')" onclick="if(this.value =='Std Code')(this.value = '')" value="Std Code" name="tel_code"> &nbsp;<input id="phone" width="40" size="20" type="text" class="login-textbox" onkeypress="return disableEnterKey(event)" onblur="if(this.value =='')(this.value = 'Enter valid Number')" onclick="if(this.value =='Enter valid Number')(this.value = '')" value="Enter valid Number" name="phone"></td>
										</tr>

										<tr align="left">
											<td>Mobile :</td>	
											<td class="login-textbox-bg"><input id="mob_code" width="20" size="10" type="text" class="login-textbox" onkeypress="return disableEnterKey(event)" onblur="if(this.value =='')(this.value = 'mob Code')" onclick="if(this.value =='mob Code')(this.value = '')" value="mob Code" name="mob_code"> &nbsp;<input id="mob" width="40" size="20" type="text" class="login-textbox" onkeypress="return disableEnterKey(event)" onblur="if(this.value =='')(this.value = 'Enter valid Number')" onclick="if(this.value =='Enter valid Number')(this.value = '')" value="Enter valid Number" name="mob"></td>

										</tr>
										
										<tr align="left">           
											<td colspan="3" align="center"><!-- <a href="#" id="show-panel"> --><input type="submit" name="submit" style="border:0; background-image: url('images/bttn.png'); background-repeat: no-repeat; width: 55px; height: 20px;" id="askq" value=""><!-- </a> --></td>
										</tr>
										
									 </table>
									</center>
								
                              <br><br>
							  <div id="ans" align="center">
										  <?php
										 
										  if(isset($_REQUEST['question']) && $_REQUEST['question']!='' )
										  {
										  echo '<div style="text-align:left;">';
											echo '<ul type="square">';
											$question=$_REQUEST['question'];
											$qu=mysql_query("select * from faq where faq like '%$question%'");
											while($row=mysql_fetch_array($qu))
											{
												echo '<li><b>'.$row['faq'].'</b>';
											$faq_id=$row['faq_id'];
												$ans=mysql_query("select * from answers where faq_id=".$faq_id);
												echo '<ul>';
												$i="1";
												while($res=mysql_fetch_array($ans))
												{
													echo '<li>Ans&nbsp;'.$i.'&nbsp; - '.$res['answers'].'</li>';
													$i++;
												}
												echo '</ul></li>';
											}
											echo '</ul></div>';
										  }
											?>
							  </div>
                              </div>
                              <div class="quesright">
                              <ul>
                              	<?php $sql=mysql_query("select * from faq order by rand() limit 0,10"); 
									while($row=mysql_fetch_array($sql))
									{
										echo '<li><a href="question_dtl.php?fid='.$row['faq_id'].'">'.$row['faq'].'</a></li>';
									}
								?>
                              </ul>
                              </div>
                              </div>	
</form>
									
                        

		<div id="lightbox-panel">

			<div id="close">
			dfg
			</div>
		</div>

		<div id="lightbox" style="width: 100%; height: 1247px;">
		</div>


                        <!--End  search_quastions-->
                    
		